package com.guigu.guliorder.entity.dto;


import com.guigu.gulicommon.constant.enumes.order.OperateMan;
import com.guigu.gulicommon.constant.enumes.order.OrderStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 批量新增订单操作历史通用入参
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/8/23 23:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class InsertOmsOrderOperateHistoryBatchDto {

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 操作人[用户；系统；后台管理员]
     */
    private OperateMan operateMan;

    /**
     * 操作时间
     */
    private LocalDateTime createTime;

    /**
     * 订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
     *
     * @see OrderStatus#getName()
     */
    private OrderStatus orderStatus;

    /**
     * 备注
     */
    private String note;

}
